"""Entry point for the cv-preview application."""


import os
from PyQt5.QtCore import QLibraryInfo

plugin_path = QLibraryInfo.location(QLibraryInfo.PluginsPath)
if plugin_path:
    os.environ["QT_QPA_PLATFORM_PLUGIN_PATH"] = plugin_path
    os.environ["QT_PLUGIN_PATH"] = plugin_path


from cv_preview.app import main


if __name__ == "__main__":
    main()
